package com.hjy.user.service.impl;

import com.hjy.service.UserService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class UserServiceImpl extends UnicastRemoteObject implements UserService {
    public UserServiceImpl() throws RemoteException{
        super();
    }

    @Override
    public String getUser(String name) throws RemoteException {
        System.out.println("查："+name);
        return "{\"name\":\""+name+"\",\"age\":20}";
    }

}
